#include <iostream>
#include <signal.h>
#include <unistd.h>

int main()
{
    int cnt = 0;
    while (true)
    {
        cnt++;
        std::cout << "I am waiting signals! My pid is:" << getpid() << std::endl;
        sleep(1);

        if (cnt == 6)
        {
            raise(2);
        }
    }
    return 0;
}
